package com.lwx.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lwx.sys.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lwx
 * @since 2020-04-14
 */
public interface RoleMapper extends BaseMapper<Role> {

    void deleteRolePermissionByPid(Integer id);

    void deleteRoleUserByRoleId(Integer id);

    void saveRolePermission(@Param("rid") Integer rid, @Param("pid") Integer pid);

    List<Integer> selectRoleIdsByUserId(Integer id);
}
